package com.fudan.adse.domain.dto;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;
import java.util.Date;

/**
 *
 * @author Jerry Zhang
 * create: 2022-11-26 15:33
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
public class FilmDTO {
    private Integer id;
    @NotEmpty(message = "影片名称不能为空")
    private String title;
    @NotEmpty(message = "影片类型不能为空")
    private String type;
    @NotEmpty(message = "导演名称不能为空")
    private String direction;
    private Date releaseDate;
//    @NotEmpty(message = "上映地区不能为空")
    private String releaseArea;
//    @NotEmpty(message = "上映类型不能为空：上映/重映")
    private String releaseType;
    @Min(value = 0, message = "影片时长必须大于 0 秒")
    private Integer footage;
    private Float rate;
    private Integer rateCount;
    private String description;
}
